<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.1.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.14.0/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css">

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"foryoungyu.gitee.io","root":"/","scheme":"Gemini","version":"8.0.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}};
  </script>

  <meta name="description" content="Linux的配置指南包括的Linux系统有Arch系（Arch、Manjaro）和Debian系（Ubuntu、deepin）本仅提供常见Linux OS的配置方法，不提供系统的安装方法如发现错误，欢迎指正  目录 目录 基本配置 软件源配置 安装输入法 fcitx ibus(gnome桌面)   配置文件 NVIDIA显卡配置 字体&amp;壁纸   Python的安装及配置 pip Cond">
<meta property="og:type" content="article">
<meta property="og:title" content="【Linux】Linux系统配置指南">
<meta property="og:url" content="https://foryoungyu.gitee.io/2020/06/25/%E3%80%90Linux%E3%80%91Linux-config/index.html">
<meta property="og:site_name" content="Salt.&#39;s Blog">
<meta property="og:description" content="Linux的配置指南包括的Linux系统有Arch系（Arch、Manjaro）和Debian系（Ubuntu、deepin）本仅提供常见Linux OS的配置方法，不提供系统的安装方法如发现错误，欢迎指正  目录 目录 基本配置 软件源配置 安装输入法 fcitx ibus(gnome桌面)   配置文件 NVIDIA显卡配置 字体&amp;壁纸   Python的安装及配置 pip Cond">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-06-24T16:00:00.000Z">
<meta property="article:modified_time" content="2021-02-13T14:18:58.065Z">
<meta property="article:author" content="Foryoung Yu">
<meta property="article:tag" content="Linux">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://foryoungyu.gitee.io/2020/06/25/%E3%80%90Linux%E3%80%91Linux-config/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>【Linux】Linux系统配置指南 | Salt.'s Blog</title>
  






  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">Salt.'s Blog</h1>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">生于忧患，死于安乐</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-系列">

    <a href="/series/" rel="section"><i class="fa fa-book fa-fw"></i>系列</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-schedule">

    <a href="/schedule/" rel="section"><i class="fa fa-calendar fa-fw"></i>日程表</a>

  </li>
  </ul>
</nav>




</div>
        
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <section class="post-toc-wrap sidebar-panel">
          <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%9B%AE%E5%BD%95"><span class="nav-number">1.</span> <span class="nav-text">目录</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE"><span class="nav-number">2.</span> <span class="nav-text">基本配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%BD%AF%E4%BB%B6%E6%BA%90%E9%85%8D%E7%BD%AE"><span class="nav-number">2.1.</span> <span class="nav-text">软件源配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E8%BE%93%E5%85%A5%E6%B3%95"><span class="nav-number">2.2.</span> <span class="nav-text">安装输入法</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#fcitx"><span class="nav-number">2.2.1.</span> <span class="nav-text">fcitx</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#ibus-gnome%E6%A1%8C%E9%9D%A2"><span class="nav-number">2.2.2.</span> <span class="nav-text">ibus(gnome桌面)</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"><span class="nav-number">2.3.</span> <span class="nav-text">配置文件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#NVIDIA%E6%98%BE%E5%8D%A1%E9%85%8D%E7%BD%AE"><span class="nav-number">2.4.</span> <span class="nav-text">NVIDIA显卡配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E4%BD%93-amp-%E5%A3%81%E7%BA%B8"><span class="nav-number">2.5.</span> <span class="nav-text">字体&amp;壁纸</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Python%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE"><span class="nav-number">3.</span> <span class="nav-text">Python的安装及配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#pip"><span class="nav-number">3.1.</span> <span class="nav-text">pip</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Conda"><span class="nav-number">3.2.</span> <span class="nav-text">Conda</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#setuptools"><span class="nav-number">3.3.</span> <span class="nav-text">setuptools</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%BB%88%E7%AB%AF%E5%B7%A5%E5%85%B7%E9%85%8D%E7%BD%AE"><span class="nav-number">4.</span> <span class="nav-text">终端工具配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#vim-neovim%E9%85%8D%E7%BD%AE"><span class="nav-number">4.1.</span> <span class="nav-text">vim&#x2F;neovim配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#zsh%E9%85%8D%E7%BD%AE"><span class="nav-number">4.2.</span> <span class="nav-text">zsh配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#ranger%E9%85%8D%E7%BD%AE"><span class="nav-number">4.3.</span> <span class="nav-text">ranger配置</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#st-amp-dwm"><span class="nav-number">5.</span> <span class="nav-text">st &amp; dwm</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%BE%8E%E5%8C%96"><span class="nav-number">6.</span> <span class="nav-text">美化</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Gnome%E7%BE%8E%E5%8C%96"><span class="nav-number">6.1.</span> <span class="nav-text">Gnome美化</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#KDE-Plasma%E7%BE%8E%E5%8C%96"><span class="nav-number">6.2.</span> <span class="nav-text">KDE Plasma美化</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Linux%E5%BF%85%E5%AE%89%E8%A3%85%E7%9A%84%E4%BE%9D%E8%B5%96%E4%BB%A5%E5%8F%8A%E5%BA%94%E7%94%A8"><span class="nav-number">7.</span> <span class="nav-text">Linux必安装的依赖以及应用</span></a></li></ol></div>
      </section>
      <!--/noindex-->

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Foryoung Yu"
      src="/images/dog.jpg">
  <p class="site-author-name" itemprop="name">Foryoung Yu</p>
  <div class="site-description" itemprop="description">欣欣向荣</div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">9</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">11</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author animated">
      <span class="links-of-author-item">
        <a href="https://github.com/ForyoungYu" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;ForyoungYu" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:foryoung@outlook.com" title="E-Mail → mailto:foryoung@outlook.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/u/5935274514" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;u&#x2F;5935274514" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
      </span>
  </div>



      </section>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">
      

      

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://foryoungyu.gitee.io/2020/06/25/%E3%80%90Linux%E3%80%91Linux-config/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/dog.jpg">
      <meta itemprop="name" content="Foryoung Yu">
      <meta itemprop="description" content="欣欣向荣">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Salt.'s Blog">
    </span>

    
    
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          【Linux】Linux系统配置指南
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2020-06-25 00:00:00" itemprop="dateCreated datePublished" datetime="2020-06-25T00:00:00+08:00">2020-06-25</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2021-02-13 22:18:58" itemprop="dateModified" datetime="2021-02-13T22:18:58+08:00">2021-02-13</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <blockquote>
<p>Linux的配置指南<br>包括的Linux系统有Arch系（Arch、Manjaro）和Debian系（Ubuntu、deepin）<br>本仅提供常见Linux OS的配置方法，不提供系统的安装方法<br>如发现错误，欢迎指正</p>
</blockquote>
<h2 id="目录"><a href="#目录" class="headerlink" title="目录"></a>目录</h2><ul>
<li><a href="#%E7%9B%AE%E5%BD%95">目录</a></li>
<li><a href="#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE">基本配置</a><ul>
<li><a href="#%E8%BD%AF%E4%BB%B6%E6%BA%90%E9%85%8D%E7%BD%AE">软件源配置</a></li>
<li><a href="#%E5%AE%89%E8%A3%85%E8%BE%93%E5%85%A5%E6%B3%95">安装输入法</a><ul>
<li><a href="#fcitx">fcitx</a></li>
<li><a href="#ibusgnome%E6%A1%8C%E9%9D%A2">ibus(gnome桌面)</a></li>
</ul>
</li>
<li><a href="#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6">配置文件</a></li>
<li><a href="#nvidia%E6%98%BE%E5%8D%A1%E9%85%8D%E7%BD%AE">NVIDIA显卡配置</a></li>
<li><a href="#%E5%AD%97%E4%BD%93%E5%A3%81%E7%BA%B8">字体&amp;壁纸</a></li>
</ul>
</li>
<li><a href="#python%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE">Python的安装及配置</a><ul>
<li><a href="#pip">pip</a></li>
<li><a href="#conda">Conda</a></li>
<li><a href="#setuptools">setuptools</a></li>
</ul>
</li>
<li><a href="#%E7%BB%88%E7%AB%AF%E5%B7%A5%E5%85%B7%E9%85%8D%E7%BD%AE">终端工具配置</a><ul>
<li><a href="#vimneovim%E9%85%8D%E7%BD%AE">vim/neovim配置</a></li>
<li><a href="#zsh%E9%85%8D%E7%BD%AE">zsh配置</a></li>
<li><a href="#ranger%E9%85%8D%E7%BD%AE">ranger配置</a></li>
</ul>
</li>
<li><a href="#st--dwm">st &amp; dwm</a></li>
<li><a href="#%E7%BE%8E%E5%8C%96">美化</a><ul>
<li><a href="#gnome%E7%BE%8E%E5%8C%96">Gnome美化</a></li>
<li><a href="#kde-plasma%E7%BE%8E%E5%8C%96">KDE Plasma美化</a></li>
</ul>
</li>
<li><a href="#linux%E5%BF%85%E5%AE%89%E8%A3%85%E7%9A%84%E4%BE%9D%E8%B5%96%E4%BB%A5%E5%8F%8A%E5%BA%94%E7%94%A8">Linux必安装的依赖以及应用</a></li>
</ul>
<h2 id="基本配置"><a href="#基本配置" class="headerlink" title="基本配置"></a>基本配置</h2><h3 id="软件源配置"><a href="#软件源配置" class="headerlink" title="软件源配置"></a>软件源配置</h3><p>切换到中国源(Manjaro)</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman-mirrors -c China</span><br></pre></td></tr></table></figure>

<p>在 /etc/pacman.conf文件末尾添加以下内容：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[archlinuxcn]</span><br><span class="line">SigLevel = Never</span><br><span class="line">Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/<span class="variable">$arch</span></span><br></pre></td></tr></table></figure>
<p>运行</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Syu</span><br></pre></td></tr></table></figure>
<h3 id="安装输入法"><a href="#安装输入法" class="headerlink" title="安装输入法"></a>安装输入法</h3><h4 id="fcitx"><a href="#fcitx" class="headerlink" title="fcitx"></a>fcitx</h4><p>安装fcitx框架及输入法：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S fcitx-im</span><br><span class="line">sudo pacman -S fcitx-configtool</span><br><span class="line">sudo pacman -S fcitx-googlepinyin</span><br><span class="line">sudo pacman -S fcitx-rime</span><br><span class="line">sudo pacman -S rime-double-pinyin</span><br><span class="line">sudo pacman -S kcm-fcitx <span class="comment"># KDE Config Module for Fcitx</span></span><br></pre></td></tr></table></figure>
<p>然后将<code>default.custom.yaml</code>文件复制到<code>~/.config/fcitx/rime/</code>目录下。</p>
<p>在家目录下创建文件<code>.xprofile</code>，写入以下内容：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">export</span> LANG=zh_CN.UTF-8</span><br><span class="line"><span class="built_in">export</span> LC_ALL=zh_CN.UTF-8</span><br><span class="line"><span class="built_in">export</span> GTK_IM_MODULE=fcitx</span><br><span class="line"><span class="built_in">export</span> QT_IM_MODULE=fcitx</span><br><span class="line"><span class="built_in">export</span> XMODIFIERS=<span class="string">&quot;@im=fcitx&quot;</span></span><br></pre></td></tr></table></figure>

<h4 id="ibus-gnome桌面"><a href="#ibus-gnome桌面" class="headerlink" title="ibus(gnome桌面)"></a>ibus(gnome桌面)</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S ibus-fime</span><br><span class="line">sudo pacman -S ibus-pinyin</span><br></pre></td></tr></table></figure>

<p>在家目录下创建文件.xprofile，写入以下内容：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">export</span> LANG=zh_CN.UTF-8</span><br><span class="line"><span class="built_in">export</span> LC_ALL=zh_CN.UTF-8</span><br><span class="line"><span class="built_in">export</span> GTK_IM_MODULE=ibus</span><br><span class="line"><span class="built_in">export</span> QT_IM_MODULE=ibus</span><br><span class="line"><span class="built_in">export</span> XMODIFIERS=<span class="string">&quot;@im=ibus&quot;</span></span><br></pre></td></tr></table></figure>

<h3 id="配置文件"><a href="#配置文件" class="headerlink" title="配置文件"></a>配置文件</h3><p>克隆配置文件到Github文件夹：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cp -r ~/Github/config/home_files/.* ~</span><br><span class="line">cp -r ~/Github/config/config_files/* ~/.config</span><br></pre></td></tr></table></figure>

<h3 id="NVIDIA显卡配置"><a href="#NVIDIA显卡配置" class="headerlink" title="NVIDIA显卡配置"></a>NVIDIA显卡配置</h3><p>首先安装驱动程序：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S nvidia </span><br></pre></td></tr></table></figure>
<p>hoquxmkaPCI地址：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">lspci | grep -E <span class="string">&quot;VGA|3D&quot;</span></span><br><span class="line"><span class="comment"># 例输出如下</span></span><br><span class="line">00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)</span><br><span class="line">01:00.0 3D controller: NVIDIA Corporation GM107 [GeForce 940MX] (rev a2)</span><br></pre></td></tr></table></figure>
<p>转换示例：将第二行的01:00.0转换为1:0:0<br>打开/etc/X11/xorg.conf（如果没有就新建一个），输入：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">Section <span class="string">&quot;Module&quot;</span></span><br><span class="line">    Load <span class="string">&quot;modesetting&quot;</span></span><br><span class="line">EndSection</span><br><span class="line"></span><br><span class="line">Section <span class="string">&quot;Device&quot;</span></span><br><span class="line">    Identifier  <span class="string">&quot;nvidia&quot;</span></span><br><span class="line">    Driver      <span class="string">&quot;nvidia&quot;</span></span><br><span class="line">    BusID       <span class="string">&quot;1:0:0&quot;</span></span><br><span class="line">    Option      <span class="string">&quot;AllowEmptyInitialConfiguration&quot;</span></span><br><span class="line">EndSection</span><br></pre></td></tr></table></figure>

<p>配置/usr/share/sddm/scripts/Xsetup文件，追加：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">xrandr --setprovideroutputsource modesetting NVIDIA-0</span><br><span class="line">xrandr --auto</span><br></pre></td></tr></table></figure>

<h3 id="字体-amp-壁纸"><a href="#字体-amp-壁纸" class="headerlink" title="字体&amp;壁纸"></a>字体&amp;壁纸</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 中文字体</span></span><br><span class="line">sudo pacman -S wqy-microhei wqy-microhei-lite wqy-bitmapfont wqy-zenhei ttf-arphic-ukai ttf-arphic-uming adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts noto-fonts-cjk</span><br><span class="line"></span><br><span class="line">git <span class="built_in">clone</span> https://gitee.com/foryoungyu/fonts.git ~/.<span class="built_in">local</span>/share/fonts</span><br><span class="line"></span><br><span class="line"><span class="comment"># wallpapers</span></span><br><span class="line">git <span class="built_in">clone</span> https://gitee.com/foryoungyu/wallpaper.git ~/Pictures/wallpapers</span><br></pre></td></tr></table></figure>

<h2 id="Python的安装及配置"><a href="#Python的安装及配置" class="headerlink" title="Python的安装及配置"></a>Python的安装及配置</h2><h3 id="pip"><a href="#pip" class="headerlink" title="pip"></a>pip</h3><blockquote>
<p>可以安装 Python 软件包的 PyPA 工具。 </p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 从文件安装</span></span><br><span class="line">wget https://bootstrap.pypa.io/get-pip.py </span><br><span class="line"><span class="comment"># or</span></span><br><span class="line">curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py</span><br><span class="line">python3 get-pip.py </span><br><span class="line"></span><br><span class="line"><span class="comment"># Ubuntu</span></span><br><span class="line">sudo apt install python3-pip </span><br><span class="line"></span><br><span class="line"><span class="comment"># Arch</span></span><br><span class="line">sudo pacman -S python-pip</span><br><span class="line"></span><br><span class="line"><span class="comment">#查看pip版本</span></span><br><span class="line">pip -V　　</span><br></pre></td></tr></table></figure>

<p>添加pip源：复制.pip/文件夹到家目录。</p>
<h3 id="Conda"><a href="#Conda" class="headerlink" title="Conda"></a>Conda</h3><p><a target="_blank" rel="noopener" href="https://www.anaconda.com/">Anaconda官网</a><br><a target="_blank" rel="noopener" href="https://www.anaconda.com/products/individual#Downloads">Anaconda下载地址</a><br><a target="_blank" rel="noopener" href="https://docs.conda.io/en/latest/miniconda.html">Miniconda下载地址</a>  </p>
<p>或运行：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh</span><br><span class="line"></span><br><span class="line">bash Miniconda3-latest-Linux-x86_64.sh</span><br></pre></td></tr></table></figure>
<p>添加conda源，将.condarc文件复制到用户目录下。</p>
<h3 id="setuptools"><a href="#setuptools" class="headerlink" title="setuptools"></a>setuptools</h3><blockquote>
<p>可以简化 Python 软件包的下载、编译、安装、升级和卸载。  </p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S python-setuptools <span class="comment"># arch</span></span><br></pre></td></tr></table></figure>

<h2 id="终端工具配置"><a href="#终端工具配置" class="headerlink" title="终端工具配置"></a>终端工具配置</h2><h3 id="vim-neovim配置"><a href="#vim-neovim配置" class="headerlink" title="vim/neovim配置"></a>vim/neovim配置</h3><p>复制config/nvim到～/.config目录下<br>vim-plug安装</p>
<blockquote>
<p>在安装vim-plug之前确保python以及相关库已经安装<br><a href="#Python%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE">Jump to Python的安装及配置</a>  </p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># vim</span></span><br><span class="line">curl -fLo ~/.vim/<span class="built_in">autoload</span>/plug.vim --create-dirs \</span><br><span class="line">    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim</span><br><span class="line"></span><br><span class="line"><span class="comment"># neovim</span></span><br><span class="line">curl -fLo ~/.<span class="built_in">local</span>/share/nvim/site/<span class="built_in">autoload</span>/plug.vim --create-dirs \</span><br><span class="line">    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim</span><br><span class="line"></span><br><span class="line"><span class="comment"># 如果拒绝连接，打开该文件</span></span><br><span class="line">sudo vim /etc/hosts</span><br><span class="line"><span class="comment"># 添加</span></span><br><span class="line">199.232.28.133 raw.githubusercontent.com</span><br><span class="line"><span class="comment"># 安装插件的依赖库</span></span><br><span class="line">pip3 install pynvim --upgrade </span><br><span class="line"><span class="comment"># 最后打开neovim执行命令</span></span><br><span class="line">:PlugInstall</span><br><span class="line"><span class="comment"># 如果打开.py文件报错，执行</span></span><br><span class="line">:UpdateRemotePlugins</span><br></pre></td></tr></table></figure>

<h3 id="zsh配置"><a href="#zsh配置" class="headerlink" title="zsh配置"></a>zsh配置</h3><p>安装zsh</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacmen -S zsh <span class="comment"># arch</span></span><br><span class="line">sudo apt install zsh <span class="comment"># ubuntu</span></span><br></pre></td></tr></table></figure>
<p>修改默认bash为zsh</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chsh -s /usr/bin/zsh</span><br></pre></td></tr></table></figure>

<p>安装oh-my-zsh</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">curl -Lo install.sh https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh</span><br><span class="line">sh install.sh</span><br><span class="line"></span><br><span class="line"><span class="comment"># gitee</span></span><br><span class="line">sh -c <span class="string">&quot;<span class="subst">$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)</span>&quot;</span></span><br><span class="line"><span class="comment"># or</span></span><br><span class="line">sh -c <span class="string">&quot;<span class="subst">$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)</span>&quot;</span></span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://github.com/ohmyzsh/ohmyzsh/wiki/Themes">oh-my-zsh皮肤</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># typewritten</span></span><br><span class="line">git <span class="built_in">clone</span> https://github.com/reobin/typewritten.git <span class="variable">$ZSH_CUSTOM</span>/themes/typewritten</span><br><span class="line"></span><br><span class="line">ln -s <span class="string">&quot;<span class="variable">$ZSH_CUSTOM</span>/themes/typewritten/typewritten.zsh-theme&quot;</span> <span class="string">&quot;<span class="variable">$ZSH_CUSTOM</span>/themes/typewritten.zsh-theme&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># powerlever10k</span></span><br><span class="line">git <span class="built_in">clone</span> --depth=1 https://github.com/romkatv/powerlevel10k.git <span class="variable">$&#123;ZSH_CUSTOM:-~/.oh-my-zsh/custom&#125;</span>/themes/powerlevel10k</span><br><span class="line"></span><br><span class="line"><span class="comment"># 配置powerlever10k</span></span><br><span class="line">p10k configure</span><br></pre></td></tr></table></figure>
<p>oh-my-zsh插件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># zsh-autosuggestions</span></span><br><span class="line">git <span class="built_in">clone</span> https://github.com/zsh-users/zsh-autosuggestions <span class="variable">$&#123;ZSH_CUSTOM:-~/.oh-my-zsh/custom&#125;</span>/plugins/zsh-autosuggestions</span><br><span class="line"></span><br><span class="line"><span class="comment"># zsh-syntax-highlighting</span></span><br><span class="line">git <span class="built_in">clone</span> https://github.com/zsh-users/zsh-syntax-highlighting.git <span class="variable">$&#123;ZSH_CUSTOM:-~/.oh-my-zsh/custom&#125;</span>/plugins/zsh-syntax-highlighting</span><br><span class="line"></span><br><span class="line"><span class="comment"># autojump</span></span><br><span class="line">git <span class="built_in">clone</span> git://github.com/wting/autojump.git ~/Github/autojump</span><br><span class="line"><span class="built_in">cd</span> ~/Github/autojump</span><br><span class="line">./install.py</span><br></pre></td></tr></table></figure>
<h3 id="ranger配置"><a href="#ranger配置" class="headerlink" title="ranger配置"></a>ranger配置</h3><p>包括的插件和命令有：</p>
<ul>
<li>ranger-devicons</li>
<li>:extracter <paths></li>
<li>:extracterhere</li>
<li>:compress</li>
</ul>
<p>复制ranger目录到～/.config/目录下</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 生成ranger配置文件命令</span></span><br><span class="line">ranger --copy-config=all</span><br><span class="line"></span><br><span class="line"><span class="comment"># 修改默认编辑器命令</span></span><br><span class="line">select-editor <span class="comment"># Ubuntu</span></span><br></pre></td></tr></table></figure>
<h2 id="st-amp-dwm"><a href="#st-amp-dwm" class="headerlink" title="st &amp; dwm"></a>st &amp; dwm</h2><p><a target="_blank" rel="noopener" href="https://suckless.org/">suckless官网</a></p>
<p>分别进入两个目录下，输入以下命令：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">make</span><br><span class="line">sudo make clean install</span><br></pre></td></tr></table></figure>

<p>其中，dwm需复制dwm.desktop文件到/usr/share/xsessions目录下，并将.screpts目录复制到家目录中。</p>
<h2 id="美化"><a href="#美化" class="headerlink" title="美化"></a>美化</h2><h3 id="Gnome美化"><a href="#Gnome美化" class="headerlink" title="Gnome美化"></a>Gnome美化</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S gnome-tweak-tool <span class="comment"># gnome美化面板</span></span><br><span class="line">sudo pacman -S chrome-gnome-shell <span class="comment"># 用chromium配置gnome的工具</span></span><br></pre></td></tr></table></figure>

<h3 id="KDE-Plasma美化"><a href="#KDE-Plasma美化" class="headerlink" title="KDE Plasma美化"></a>KDE Plasma美化</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S latte-dock <span class="comment"># kde dock</span></span><br><span class="line">yay -S compiz </span><br></pre></td></tr></table></figure>
<p>之后在终端运行<code>latte-dock</code></p>
<h2 id="Linux必安装的依赖以及应用"><a href="#Linux必安装的依赖以及应用" class="headerlink" title="Linux必安装的依赖以及应用"></a>Linux必安装的依赖以及应用</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># ===================基础依赖===========================</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 设备驱动</span></span><br><span class="line">sudo pacman -S net-tools</span><br><span class="line">sudo pacman -S xorg xorg-server</span><br><span class="line">sudo pacman -S xf86-input-synaptics <span class="comment"># 触摸板驱动</span></span><br><span class="line">sudo pacman -S xf86-input-libinput</span><br><span class="line">sudo pacman -S xf86-video-intel <span class="comment"># intel显卡驱动</span></span><br><span class="line">sudo pacman -S xf86-video-ati <span class="comment"># amd显卡驱动</span></span><br><span class="line">sudo pacman -S alsa-utils pulseaudio pulseaudio-alsa <span class="comment"># 声音管理器</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 底层应用</span></span><br><span class="line">sudo pacman -S w3m <span class="comment"># 终端浏览器</span></span><br><span class="line">sudo pacman -S ntfs-3g <span class="comment"># 识别windows分区</span></span><br><span class="line">sudo pacman -S make cmake <span class="comment"># 编译工具</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># ======================应用程序==========================</span></span><br><span class="line"><span class="comment"># Arch / Manjaro</span></span><br><span class="line">sudo pacman -S zsh</span><br><span class="line">sudo pacman -S fish</span><br><span class="line">sudo pacman -S git</span><br><span class="line">sudo pacman -S yay <span class="comment"># Arch的AUR</span></span><br><span class="line">sudo pacman -S alacritty</span><br><span class="line">sudo pacman -S htop</span><br><span class="line">sudo pacman -S ranger</span><br><span class="line">sudo pacman -S i3</span><br><span class="line">sudo pacman -S polybar</span><br><span class="line"></span><br><span class="line">sudo pacman -S code <span class="comment"># vscode</span></span><br><span class="line">sudo pacman -S netease-cloud-music <span class="comment"># 网易云音乐</span></span><br><span class="line">sudo pacman -S kdenlive <span class="comment"># 视频剪辑软件</span></span><br><span class="line">sudo pacman -S gimp <span class="comment"># 修图软件</span></span><br><span class="line">sudo pacman -S simplescreenrecorder <span class="comment"># 录屏软件</span></span><br><span class="line">sudo pacman -S libreoffice-fresh-zh-cn <span class="comment"># 中文版libreoffice</span></span><br><span class="line">yay -S dropbox</span><br><span class="line"></span><br><span class="line"><span class="comment"># Wechat</span></span><br><span class="line">yay -S deepin-wine-wechat</span><br><span class="line">yay -S deepin.com.wechat2</span><br><span class="line">sudo pacman -S electronic-wechat-git</span><br><span class="line">sudo pacman -S electron-wechat</span><br><span class="line">yay -S wechat-devtools</span><br><span class="line"></span><br><span class="line"><span class="comment"># QQ &amp; TIM</span></span><br><span class="line">yay -S deepin-wine-tim</span><br><span class="line">yay -S deepin-wine-qq</span><br></pre></td></tr></table></figure>
    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Linux/" rel="tag"># Linux</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2020/06/11/hello-world/" rel="prev" title="Hello World">
                  <i class="fa fa-chevron-left"></i> Hello World
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2020/06/25/%E3%80%90C-C-%E3%80%91C-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6/" rel="next" title="【C/C++】VScode配置C++调试的配置文件">
                  【C/C++】VScode配置C++调试的配置文件 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
  
  
  



      

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

    </div>
  </main>

  <footer class="footer">
    <div class="footer-inner">
      

      

<div class="copyright">
  
  &copy; 2020 – 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Foryoung Yu</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="//cdn.jsdelivr.net/npm/animejs@3.2.0/lib/anime.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script>

  


















  








  

  

</body>
</html>
